package com.finalproject.entity;

/**
 * SnackItem keep track of its price, calories, name, and description, and image
 * 
 * @author dave
 * @version 02/25/2012 (cagri)
 */
public class SnackItem {
	
	private String name;
	private Double price;
	private String description;
	private String image;
	private Integer calories;
	private Double fat;
	private Double cholestrol;
	private Double carbs;
	private Double sodium;
	private Double protein;
	
	public SnackItem() {
		
	}
	
	public SnackItem(String name, Double price, String description, Integer calories, Double fat, Double cholestrol, Double carbs, Double sodium, Double protein) {
		this.name = name;
		this.price = price;
		this.description = description;
		this.calories = calories;
		this.fat = fat;
		this.cholestrol = cholestrol;
		this.carbs = carbs;
		this.sodium = sodium;
		this.protein = protein;
	}
	
	
	/**
	 * get calories of SnackItem
	 * @return
	 */
	public Integer getCalories() {
		return calories;
	}
	/**
	 * set calories of SnackItem
	 * @param calories
	 */
	public void setCalories(Integer calories) {
		this.calories = calories;
	}
	/***
	 * get price of SnackItem
	 * @return
	 */
	public Double getPrice() {
		return price;
	}
	/**
	 * set price of SnackItem
	 * @param price
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	
	/**
	 * get name of SnackItem
	 * @return
	 */
	public String getName() {
		return name;
	}
	/**
	 * set name of SnackItem
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * get description of SnackItem
	 * @return
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * set description of SnackItem
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	 * get image of SnackItem
	 * @return
	 */
	public String getImage() {
		return image;
	}
	/**
	 * set image of SnackItem
	 * @param image
	 */
	public void setImage(String image) {
		this.image = image;
	}
	
	
	public Double getFat() {
		return fat;
	}
	public Double getCholestrol() {
		return cholestrol;
	}
	public void setCholestrol(Double cholestrol) {
		this.cholestrol = cholestrol;
	}
	public Double getCarbs() {
		return carbs;
	}
	public void setCarbs(Double carbs) {
		this.carbs = carbs;
	}
	public Double getSodium() {
		return sodium;
	}
	public void setSodium(Double sodium) {
		this.sodium = sodium;
	}
	public Double getProtein() {
		return protein;
	}
	public void setProtein(Double protein) {
		this.protein = protein;
	}
	public void setFat(Double fat) {
		this.fat = fat;
	}
	
	public SnackItem clone() {
		SnackItem snackItem = new SnackItem();
		snackItem.setName(name);
		snackItem.setPrice(price);
		snackItem.setDescription(description);
		snackItem.setImage(image);
		snackItem.setCalories(calories);
		snackItem.setFat(fat);
		snackItem.setCholestrol(cholestrol);
		snackItem.setCarbs(carbs);
		snackItem.setSodium(sodium);
		snackItem.setProtein(protein);
		
		return snackItem;
		
		
	}
	
	public String toString(){
		return name+" $"+price+" Description: "+description+" Calories: "+calories+" Fat: "+fat+" Carbs: "+carbs+
				" Sodium: "+sodium+" Cholestrol "+cholestrol+" Protein: "+protein;
	}
	

}